<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>修改密保手机</title>
<%
		String message=String.valueOf((request.getSession().getAttribute("alter_phone_message")));
		%>
		<script>
		var message="<%=message%>";
		if(message.length!=0&&message!="null"){
			alert(message);
			
			
		}
		<% request.getSession().setAttribute("alter_phone_message","");%>
		</script>
</head>
<body>
	<div>
    <span>位置：更改密保手机</span>
     <ul>
     <li><a href="http://localhost:8080/my_term_project_xuanke/student/student_home.jsp">返回主页</a>	</li>
     <li><a href="http://localhost:8080/my_term_project_xuanke/student/choose_course.jsp">选课</a>	</li>
     <li><a href="http://localhost:8080/my_term_project_xuanke/student/showCourse.jsp">查看课表</a>	</li>	
	 <li><a href="http://localhost:8080/my_term_project_xuanke/student/updatePW.jsp">修改密码</a></li>	

    </ul>
    </div>
<% 
	String StuID=String.valueOf((request.getSession().getAttribute("ID")));
	String action ="http://localhost:8080/my_term_project_xuanke/studentServlet?action=alter_phone";
%>
<h2 align="center">欢迎学生：<%=StuID%></h2>
	    <form method="POST" name="alter_phone" onsubmit="return validate_alter_phone()" action="<%=action%>"><!--  -->  
		    <table>
		    <tr><td>原号码 ：</td><td><input name="newphone" type="text" class="dfinput" /></td></tr>   
			    <tr><td>新号码 ：</td><td><input name="newphone" type="text" class="dfinput" /></td></tr>    	 
			   		<td> <input name="" type="submit" class="scbtn1" value="提交" onclick="validate_alter_phone()"/></td></tr>
		    </table>	
		  	    	
			
		    
		    </form>
		    </div>
		    
	    <span>管理员联系方式：1111111111</span>
</body>
</html>